/************************************************************************
 * The code is owned by mainframer.cn and Shang Tao
 * Without aproval of mainframer.cn and Shang Tao, removing the copyright
 * infomation is regarded as invassion of proprietary copyright
 ***********************************************************************/
package com.mr.qa.util;

import com.mr.qa.dao.impl.AnswerDAO;
import com.mr.qa.dao.impl.BaseHibernateDAO;
import com.mr.qa.dao.impl.CommentDAO;
import com.mr.qa.dao.impl.MessageDAO;
import com.mr.qa.dao.impl.MyLinkDAO;
import com.mr.qa.dao.impl.QuestionCategoryDAO;
import com.mr.qa.dao.impl.SharedFileCategoryDAO;
import com.mr.qa.dao.impl.SharedFileDAO;

public class DaoFactory {

	private static DaoFactory instance = new DaoFactory();

	private DaoFactory() {

	}

	public static DaoFactory getInstance() {
		return instance;
	}

	public BaseHibernateDAO getDAO(String key) {
		return null;
	}

	public QuestionCategoryDAO getQuestionCategoryDAO() {
		return new QuestionCategoryDAO();
	}

	public AnswerDAO getAnswerDAO() {
		return new AnswerDAO();
	}

	public CommentDAO getCommentDAO() {
		return new CommentDAO();
	}

	public MyLinkDAO getMyLinkDAO() {
		return new MyLinkDAO();
	}

	public SharedFileDAO getSharedFileDAO() {
		return new SharedFileDAO();
	}

	public SharedFileCategoryDAO getSharedFileCategoryDAO() {
		return new SharedFileCategoryDAO();
	}

	public MessageDAO getMessageDAO() {
		return new MessageDAO();
	}

}
